<!DOCTYPE html>

<html class="theme-next pisces use-motion">
<head>
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">

    <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
    <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1">


    <meta http-equiv="Cache-Control" content="no-transform">
    <meta http-equiv="Cache-Control" content="no-siteapp">


    <link href="css/jquery.fancybox.css" rel="stylesheet" type="text/css">
    <link href="css/bootstrap.css" rel="stylesheet">
    <link href="css/main.css" rel="stylesheet" type="text/css">
    <meta name="keywords" content="Hexo, NexT">
    <link rel="shortcut icon" type="image/x-icon" href="http://zkdcloud.cn/1.ico">


    <meta name="description">
    <meta property="og:type" content="website">
    <meta property="og:title" content="${user.name}">
    <meta property="og:url" content="http://yoursite.com/index.html">

    <meta property="og:description">
    <meta name="twitter:card" content="summary">
    <meta name="twitter:title" content="${user.name}">
    <meta name="twitter:description">


    <script type="text/javascript" id="hexo.configuration">
        var NexT = window.NexT || {};
        var CONFIG = {
            scheme: 'Pisces',
            sidebar: {"position": "left", "display": "post"},
            fancybox: true,
            motion: true,
            duoshuo: {
                userId: 0,
                author: '博主'
            }
        };
    </script>

    <title> ${user.name}</title>
    <style type="text/css">.fancybox-margin {
        margin-right: 17px;
    }</style>
</head>

<body itemscope="" itemtype="http://schema.org/WebPage" >


<div class="container one-collumn sidebar-position-left
   page-home
 ">
    <div class="headband"></div>

    <header id="header" class="header" itemscope="" itemtype="http://schema.org/WPHeader">
        <div class="header-inner">
            <div class="site-meta ">


                <div class="custom-logo-site-title">
                    <a href="index" class="brand" rel="start" style="opacity: 1;">
                        <span class="logo-line-before"><i></i></span>
                        <span class="site-title" style="opacity: 1; top: 0px;">${user.name}</span>
                        <span class="logo-line-after"><i></i></span>
                    </a>
                </div>
                <p class="site-subtitle" style="opacity: 1; top: 0px;"></p>
            </div>

            <div class="site-nav-toggle">
                <button>
                    <span class="btn-bar"></span>
                    <span class="btn-bar"></span>
                    <span class="btn-bar"></span>
                </button>
            </div>

            <nav class="site-nav">
                <ul id="menu" class="menu">
                    <li class="menu-item menu-item-home "
                        style="opacity: 1; transform: translateY(0px);">
                        <a href="writeBlog?pid=0&uid=${user.uid}" rel="section">
                            <span class="glyphicon glyphicon-home"></span> <br>
                            写文章
                        </a>
                    </li>

                    <li class="menu-item menu-item-archives menu-item-active" style="opacity: 1; transform: translateY(0px);">
                        <a href="Manager?pid=0" rel="section">
                            <span class="glyphicon glyphicon-list"></span> <br>
                            我的文章
                        </a>
                    </li>

                    <li class="menu-item menu-item-archives" style="opacity: 1; transform: translateY(0px);">
                        <a href="setUp" rel="section">
                            <span class="glyphicon glyphicon-wrench"></span> <br>
                            修改信息
                        </a>
                    </li>
                    <li class="menu-item menu-item-about" style="opacity: 1; transform: translateY(0px);">
                        <a  rel="section" href="index">
                            <span class="glyphicon glyphicon-paperclip"></span> <br>
                            返回主页
                        </a>
                    </li>
                </ul>
            </nav>

        </div>
    </header>

    <main id="main" class="main">
        <div class="main-inner">
            <div class="content-wrap">
                <div id="content" class="content">
                    <h2>文章列表</h2>
                    <ul class="articleList">
                    <#list listDaily as daily>
                        <li>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;${daily_index+1}、<a href="info?ld=${daily.did}" style="border-bottom: 0px  ;">${daily.title}</a><label class="label label-default" style="float: right" onclick="delDaily(${daily.did})">删除</label><label class="label label-default" style="float: right" onclick="editDily(${daily.did})">编辑</label></li>

                    </#list>
                    </ul>
                    <#if (dispage.curPage+1 > 1)>
                        <a href="Manager?pid=${dispage.curPage-1}">上一页</a>
                    </#if>

                    <#if (dispage.curPage+1 < dispage.countPage)>
                        <a href="Manager?pid=${dispage.curPage+1}" style="float: right">下一页</a>
                    </#if>
                </div>
                <div class="comments" id="comments">
                </div>
            </div>
            <div class="sidebar-toggle">
                <div class="sidebar-toggle-line-wrap">
                    <span class="sidebar-toggle-line sidebar-toggle-line-first"></span>
                    <span class="sidebar-toggle-line sidebar-toggle-line-middle"></span>
                    <span class="sidebar-toggle-line sidebar-toggle-line-last"></span>
                </div>
            </div>

            <aside id="sidebar" class="sidebar" style="margin-top: 268px; display: block;">
                <div class="sidebar-inner">
                    <section class="site-overview sidebar-panel  sidebar-panel-active ">
                        <div class="site-author motion-element" itemprop="author" itemscope=""
                             itemtype="http://schema.org/Person">
                            <#if user.img ??>
                                <img class="site-author-image" itemprop="image" src="${user.img}"
                                     alt="${user.name}">
                            <#else>

                                <img class="site-author-image" itemprop="image" src="images/avatar.gif"
                                     alt="${user.name}">
                            </#if>
                            <p class="site-author-name" itemprop="name"></p>
                            <p class="site-description motion-element" itemprop="description"></p>
                        </div>
                        <nav class="site-state motion-element">
                            <div class="site-state-item site-state-posts">
                                <a href="list">
                                    <span class="site-state-item-count">${user.daily}</span>
                                    <span class="site-state-item-name">日志</span>
                                </a>
                            </div>
                        </nav>
                        <div class="links-of-author motion-element">
                        </div>
                    </section>
                </div>
            </aside>
        </div>
    </main>
    <footer id="footer" class="footer">
        <div class="footer-inner">
            <div class="copyright">
                ©
                <span itemprop="copyrightYear">2016</span>
  <span class="with-love">
    <i class="fa fa-heart"></i>
  </span><span class="author" itemprop="copyrightHolder">knife</span>
            </div>
        </div>
    </footer>
    <div class="back-to-top">
        <i class="fa fa-arrow-up"></i>
    </div>
</div>

<script type="text/javascript">
    if (Object.prototype.toString.call(window.Promise) !== '[object Function]') {
        window.Promise = null;
    }


</script>


<script type="text/javascript" src="js/index.js"></script>


<script type="text/javascript" src="js/fastclick.min.js"></script>


<script type="text/javascript" src="js/jquery.lazyload.js"></script>


<script type="text/javascript" src="js/velocity.min.js"></script>


<script type="text/javascript" src="js/velocity.ui.min.js"></script>


<script type="text/javascript" src="js/jquery.fancybox.pack.js"></script>


<script type="text/javascript" src="js/utils.js"></script>

<script type="text/javascript" src="js/motion.js"></script>


<script type="text/javascript" src="js/affix.js"></script>

<script type="text/javascript" src="js/pisces.js"></script>


<script type="text/javascript" src="js/bootstrap.js"></script>

<script type="text/javascript">
    if (Object.prototype.toString.call(window.Promise) !== '[object Function]') {
        window.Promise = null;
    }

    function delDaily(did) {
        if(confirm("确认删除？"))
        {
            window.location.href="deleteDaily?did="+did;
        }

    }
    function editDily(did) {
        window.location.href="editorDaily?did="+did;
    }

</script>


</body>
</html>